package com.polaris.live.viewmodel

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.mvvm.viewmodel.BaseViewModel
import com.polaris.live.common.network.requestLoading
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.userService
import com.polaris.live.resp.back_resp.UserVipCenterResp

/**
 * VipCenterViewModel
 *
 * @author Created by 天晴 on 2024/12/10/022 16:01
 */
class VipCenterViewModel : BaseViewModel() {

    //vip中心
    val vipCenterRespLiveData = MutableLiveData<ResultState<UserVipCenterResp>>()
    fun getVipCenter() {
        requestLoading({ userService.getVipCenter() }, vipCenterRespLiveData)
    }
}